<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>夺宝订单</title>
<link href="/resource/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/resource/admin/js/jquery.js"></script>
<script type="text/javascript" src="/resource/admin/js/common.js"></script>
<script type="text/javascript" src="/resource/admin/js/list.js"></script>
<script type="text/javascript" src="/resource/admin/layer/layer.js"></script>
<script type="text/javascript" src="/resource/admin/datePicker/WdatePicker.js"></script>
<script type="text/javascript">
$().ready(function() {
	[@flash_message /]
});
</script>
</head>
<body>
    <!-- 地址导航-->
	<div class="path">
		<a href="/common/index">首页</a> &raquo;账户记录<span>${page.total}</span>;金额:${amount}
	</div>
    <!-- 主体-->
	<form id="listForm" action="list" method="get">
        <div class="searchBar">
            <table class="searchContent">

                <tr>
                    <td>
                        用户ID：<input type="text" name="eq_long_memberId" class="text" value="${eq_long_memberId}" />
                    </td>
                    <td>
                        手机号码：<input type="text" name="eq_mobile" class="text" value="${eq_mobile}" />
                    </td>
                    <td>
                        操作类型：
                        <select name="eq_int_tradeCat" class="text">
                            <option value="">所有</option>
                            <option value="0" [#if eq_int_tradeCat=='0']selected='selected'[/#if]>充值</option>
                            <option value="1" [#if eq_int_tradeCat=='1']selected='selected'[/#if]>转账</option>
                            <option value="2" [#if eq_int_tradeCat=='2']selected='selected'[/#if]>购物</option>
                            <option value="3" [#if eq_int_tradeCat=='3']selected='selected'[/#if]>理财</option>
                            <option value="4" [#if eq_int_tradeCat=='4']selected='selected'[/#if]>退款</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        开始时间：<input type="text" id="beginDate" name="gt_datetime_createDate" class="text Wdate" readonly="readonly"  value="[#if gt_datetime_createDate??]${gt_datetime_createDate?string("yyyy-MM-dd HH:mm:ss")}[#else]${beginData?string("yyyy-MM-dd HH:mm:ss")}[/#if]" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss', maxDate: '#F{$dp.$D(\'endDate\')}' });"/>
                    </td>
                    <td>
                        结束时间：<input type="text" id="endDate" name="lt_datetime_createDate" class="text Wdate"  readonly="readonly"   value="[#if lt_datetime_createDate??]${lt_datetime_createDate?string("yyyy-MM-dd HH:mm:ss")}[#else]${endData?string("yyyy-MM-dd HH:mm:ss")}[/#if]"  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate: '#F{$dp.$D(\'beginDate\')}',maxDate: '${currentDate}'});"/>
                    </td>
                    <td>
                        <button type="submit">检索</button>
                    </td>

                </tr>
            </table>
        </div>
		<div class="bar">
			<div class="buttonWrap">
                <a href="export" class="iconButton" id="exportExcel">
                    <span class="downIcon">&nbsp;</span>导出
                </a>
				<a href="javascript:;" id="deleteButton" class="iconButton disabled">
					<span class="deleteIcon">&nbsp;</span>删除
				</a>
				<a href="javascript:;" id="refreshButton" class="iconButton">
					<span class="refreshIcon">&nbsp;</span>刷新
				</a>
				<div class="menuWrap">
					<a href="javascript:;" id="pageSizeSelect" class="button">
					    每页条数<span class="arrow">&nbsp;</span>
					</a>
                    <div class="popupMenu">
                        <ul id="pageSizeOption">
                            <li>
                                <a href="javascript:;"[#if page.numPerPage == 10] class="current"[/#if] val="10">10</a>
                            </li>
                            <li>
                                <a href="javascript:;"[#if page.numPerPage == 20] class="current"[/#if] val="20">20</a>
                            </li>
                            <li>
                                <a href="javascript:;"[#if page.numPerPage == 50] class="current"[/#if] val="50">50</a>
                            </li>
                            <li>
                                <a href="javascript:;"[#if page.numPerPage == 100] class="current"[/#if] val="100">100</a>
                            </li>
                        </ul>
                    </div>
				</div>
			</div>
		</div>
		<table id="listTable" class="list">
			<tr>
				<th class="check">
					<input type="checkbox" id="selectAll" />
				</th>
				<th>
                    <span>编号</span>
				</th>
                <th>
                    <span>变动金额</span>
                </th>
                <th>
                    <span>操作后余额</span>
                </th>
                <th>
                    <span>备注</span>
                </th>
                <th>
                    <span>用户ID</span>
                </th>
                <th>
                    <span>用户号码</span>
                </th>
                <th>
                    <span>业务分类</span>
                </th>
                <th>
                    <span>关联订单</span>
                </th>
                <th>
                    <span>创建时间</span>
                </th>
                <th>操作</th>
			</tr>
			[#list page.content as entity]
				<tr [#if entity.type==0] style="color: #CC0000;background: #f1f1f1;"[#else] style="color: darkgreen;" [/#if]>
					<td>
						<input type="checkbox" name="ids" value="${entity.id}" />
					</td>
					<td>
                       ${entity.sn}
					</td>
                    <td>
                        ${entity.fee}
                    </td>
                    <td>
                        ${entity.balance}
                    </td>
                    <td>
                        ${entity.remarks}
                    </td>
                    <td>
                        ${entity.memberId}
                    </td>
                    <td>
                    ${entity.mobile}
                    </td>
                    <td>
                        [#if entity.tradeCat==0]<span style="">充值</span>[/#if]
                        [#if entity.tradeCat==1]<span style="">转账</span>[/#if]
                        [#if entity.tradeCat==2]<span style="">购物</span>[/#if]
                        [#if entity.tradeCat==3]<span style="">理财</span>[/#if]
                        [#if entity.tradeCat==4]<span style="">退款</span>[/#if]
                    </td>
                    <td>
                        ${entity.outSn}
                    </td>
                    <td>
                        ${entity.createDate?string("yyyy-MM-dd HH:mm:ss")}
                    </td>
                    <td>
                        <a href="edit?id=${entity.id}">[详情]</a>
                    </td>
				</tr>
			[/#list]
		</table>
       [@pagination pageNumber = page.pageNumber totalPages = page.totalPages]
             [#include "/common/pagination.ftl"]
       [/@pagination]

	</form>
    <script type="text/javascript">
        $(function() {
            $("#exportExcel").click(function () {
                var $form = $("#listForm");
                $form.attr("action", "/tradeRecord/export.do")
                $form.submit();
                return false;
            });
        });

    </script>
</body>
</html>